home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeettttssssiiiidddd((((2222)))) sssseeeettttssssiiiidddd((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_eeee_tttt_ssss_iiii_dddd - set session ID
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
-
- _pppp_iiii_dddd______tttt _ssss_eeee_tttt_ssss_iiii_dddd_((((_vvvv_oooo_iiii_dddd_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- If the calling process is not already a process group leader, _ssss_eeee_tttt_ssss_iiii_dddd sets
- the process group ID and session ID of the calling process to the process
- ID of the calling process, and releases the process's controlling
- terminal.
-
- _ssss_eeee_tttt_ssss_iiii_dddd will fail and return an error if the following is true:
-
- _EEEE_PPPP_EEEE_RRRR_MMMM The calling process is already a process group leader, or
- there are processes other than the calling process whose
- process group ID is equal to the process ID of the calling
- process.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _iiii_nnnn_tttt_rrrr_oooo(2), _eeee_xxxx_eeee_cccc(2), _eeee_xxxx_iiii_tttt(2), _ffff_oooo_rrrr_kkkk(2), _gggg_eeee_tttt_pppp_iiii_dddd(2), _gggg_eeee_tttt_pppp_gggg_iiii_dddd(2), _gggg_eeee_tttt_ssss_iiii_dddd(2),
- _ssss_eeee_tttt_pppp_gggg_iiii_dddd(2), _ssss_eeee_tttt_pppp_gggg_rrrr_pppp, _ssss_iiii_gggg_nnnn_aaaa_llll(2), _ssss_iiii_gggg_ssss_eeee_nnnn_dddd(2), _ssss_iiii_gggg_aaaa_cccc_tttt_iiii_oooo_nnnn(2).
-
- NNNNOOOOTTTTEEEESSSS
- If the calling process is the last member of a pipeline started by a job
- control shell, the shell may make the calling process a process group
- leader. The other processes of the pipeline become members of that
- process group. In this case, the call to _ssss_eeee_tttt_ssss_iiii_dddd will fail. For this
- reason, a process that calls _ssss_eeee_tttt_ssss_iiii_dddd and expects to be part of a pipeline
- should always first fork; the parent should exit and the child should
- call _ssss_eeee_tttt_ssss_iiii_dddd, thereby insuring that the process will work reliably when
- started by both job control shells and non-job control shells.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, _ssss_eeee_tttt_ssss_iiii_dddd returns the calling process's session
- ID. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate
- the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-